<div class="row">
    <div class="col-xs-12">
        <div class="panel panel-midnightblue">
            <div class="panel-heading"><h4>内门禁修改</h4></div>
            <div class="panel-body">
                <form action="" class="form-horizontal row-border"  data-validate="parsley" id="validate-form">
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="name">名称:</label>
                        <div class="col-sm-6">
                            <input type="text" name="pname" id="pname" required="required" placeholder="名称" value="{$model.pname}" required="required" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                    		<label class="col-sm-3 control-label">描述:</label>
                    		<div class="col-sm-6">
                    			<textarea class="form-control" name="pdesc">{$model.pdesc}</textarea>
                    		</div>
                    </div>
                      <div class="form-group">
                    		<label class="col-sm-3 control-label" >选择内门禁(多选 按ctrl 键):</label>
                    		<div class="col-sm-6">
                    			<select class="form-control" name="door_ids[]" multiple>
                    				{foreach $list as $vo}
                    					<option value="{$vo.id}" {if condition="in_array($vo['id'],$door_ids)"}selected="selected"{/if}>{$vo.name}</option>
                    				{/foreach}
                    			</select>
                    		</div>
                    </div>
                    <input type="hidden" name="id" value="{$model.id}"/>
                </form>
            </div>
            <div class="panel-footer">
                <div class="row">
                    <div class="col-sm-6 col-sm-offset-3">
                        <div class="btn-toolbar">
                            <button class="btn-primary btn" id="form-submit">提交</button>
                            <button class="btn-default btn" data-dismiss="modal">关闭</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type='text/javascript' src='{$Think.ADMIN_VIEW_JS}sliding_group/edit.js'></script>